package com.qd.panda.gas.station.req;

import com.qd.common.sys.domain.entity.log.SendLogDTO;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 对账单
 *
 * @author sjk
 * @create 2023-02-16 10:50
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
@ToString
public class ReconciliationReqDTO {
    /**
     * 订单号，创建订单获取(接口方返回的订单ID)
     */
    private String orderId;
    /**
     * 第三方订单号(我们系统的订单ID)
     */
    private String thirdPartyOrderId;
    /**
     * 订单支付开始日期时间
     */
    private LocalDateTime startTime;
    /**
     * 订单支付结束日期时间
     */
    private LocalDateTime endTime;
    /**
     * 分页数量
     */
    private Integer pageNumber;
    /**
     * 页数
     */
    private Integer pageSize;

    private SendLogDTO sendLog;

    public void freeData() {
        this.orderId = null;
        this.thirdPartyOrderId = null;
        this.startTime = null;
        this.endTime = null;
        this.pageNumber = null;
        this.pageSize = null;
        //不清空sendLog
    }
}